package com.youlai.system.model.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.youlai.system.common.util.JsonArrayToStringListTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @version 1.0
 * @Author zzps
 * @Date 2024/3/11 22:27
 * @注释
 */
@Schema(description ="商品分页对象")
@Data
public class ProductPageVo {
    @Schema(description="商品ID")
    private Long id;

    @Schema(description="商品名称")
    private String title;

    @Schema(description="商品分类ID")
    private Long categoryId;

    @Schema(description="商品分类名称")
    private String categoryName;

    @Schema(description="商品价格")
    private Double price;

    @Schema(description="商品库存")
    private Integer num;

    @Schema(description="商品状态")
    private Integer status;

    @Schema(description = "商品排序")
    private Integer priority;

    @Schema(description="商品图片")
    private String image;

    @Schema(description="商品系列")
    private String itemType;

    @Schema(description="商品卖点")
    private String sellPoint;

    @Schema(description="商品缩略图")
    @TableField(typeHandler = JsonArrayToStringListTypeHandler.class)
    private List<String> thumbnails;

    @Schema(description="创建人")
    private String createdUser;

    @Schema(description="创建时间")
    private String createdTime;

    @Schema(description="最后修改人")
    private String modifiedUser;

    @Schema(description="最后修改时间")
    private String modifiedTime;
}
